package com.tl.app.service.impl;

import java.util.List;
import com.tl.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tl.app.mapper.AppAccountAccessMapper;
import com.tl.app.domain.AppAccountAccess;
import com.tl.app.service.IAppAccountAccessService;

/**
 * 用户提现Service业务层处理
 * 
 * @author suhp
 * @date 2024-07-07
 */
@Service
public class AppAccountAccessServiceImpl implements IAppAccountAccessService 
{
    @Autowired
    private AppAccountAccessMapper appAccountAccessMapper;

    /**
     * 查询用户提现
     * 
     * @param id 用户提现主键
     * @return 用户提现
     */
    @Override
    public AppAccountAccess selectAppAccountAccessById(Long id)
    {
        return appAccountAccessMapper.selectAppAccountAccessById(id);
    }

    /**
     * 查询用户提现列表
     * 
     * @param appAccountAccess 用户提现
     * @return 用户提现
     */
    @Override
    public List<AppAccountAccess> selectAppAccountAccessList(AppAccountAccess appAccountAccess)
    {
        return appAccountAccessMapper.selectAppAccountAccessList(appAccountAccess);
    }

    /**
     * 新增用户提现
     * 
     * @param appAccountAccess 用户提现
     * @return 结果
     */
    @Override
    public int insertAppAccountAccess(AppAccountAccess appAccountAccess)
    {
        appAccountAccess.setCreateTime(DateUtils.getNowDate());
        return appAccountAccessMapper.insertAppAccountAccess(appAccountAccess);
    }

    /**
     * 修改用户提现
     * 
     * @param appAccountAccess 用户提现
     * @return 结果
     */
    @Override
    public int updateAppAccountAccess(AppAccountAccess appAccountAccess)
    {
        return appAccountAccessMapper.updateAppAccountAccess(appAccountAccess);
    }

    /**
     * 批量删除用户提现
     * 
     * @param ids 需要删除的用户提现主键
     * @return 结果
     */
    @Override
    public int deleteAppAccountAccessByIds(Long[] ids)
    {
        return appAccountAccessMapper.deleteAppAccountAccessByIds(ids);
    }

    /**
     * 删除用户提现信息
     * 
     * @param id 用户提现主键
     * @return 结果
     */
    @Override
    public int deleteAppAccountAccessById(Long id)
    {
        return appAccountAccessMapper.deleteAppAccountAccessById(id);
    }
}
